package com.fastloan.jn.mgt.customermanager.basic.service;

import com.fastloan.jn.mgt.customermanager.basic.model.JnCustomerManager;
import com.fastloan.jn.mgt.customermanager.basic.model.vo.JnCustomerManagerTree;
import com.fastloan.jn.mgt.customermanager.basic.model.vo.ManagerPerformanceExt;
import com.fastloan.safe.mgt.user.model.CmuUser;
import com.kawins.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * 济南客户经理Service
 *
 * @author yanwe
 *         createTime 2017-10-2017/10/17 11:15
 */
public interface JnCustomerManagerService extends BaseService<JnCustomerManager>{


    JnCustomerManagerTree selectByUserId(String userId);

    boolean createCustomerManager(JnCustomerManager jnCustomerManager);


    boolean updateCustomerManager(JnCustomerManager jnCustomerManager);

    List<JnCustomerManagerTree> selectTierTreeByUserId(Integer userId);

    List<JnCustomerManagerTree> selectTierTreeByOrgId(Integer orgId);

    List<JnCustomerManagerTree> selectCusMgrTreeByUserId(Map<String,Object> map);

    List<JnCustomerManagerTree> selectCusMgrTreeByOrgId(Map<String,Object> map);

    List<String> managerIds(String managerId);

    List<CmuUser> queryOrgManagers(Map<String,Object> map);

    List<ManagerPerformanceExt> queryManagerPerformance(Map<String, Object> map);

}
